/*
 * @Author: scl
 * @Date: 2023-09-19 17:33:58
 * @LastEditTime: 2023-09-19 17:35:59
 * @Description: file content
 */
import type { AddressItem } from "@/types/address";
import { defineStore } from "pinia";
import { ref } from "vue";

export const userAddressesStore = defineStore('address', () => {
    const selectedAddress = ref<AddressItem>()
    const changeSelectedAddress = (val: AddressItem) => {
        selectedAddress.value = val
    }

    return {
        selectedAddress,
        changeSelectedAddress
    }
})